package com.wy.ssm.service.impl;

import com.github.pagehelper.PageHelper;
import com.wy.ssm.domain.Order;
import com.wy.ssm.mapper.OrderMapper;
import com.wy.ssm.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: wy
 * @Date:2019/9/4 17:26
 */
@Service
public class OrderServiceImpl implements OrderService {
     @Autowired
     private OrderMapper orderMapper;
    @Override
    public List<Order> findAll(Integer pageNum,Integer pageSize,String orderNum)throws Exception {
          //分页插件
        PageHelper.startPage(pageNum,pageSize);
        return orderMapper.findAll(orderNum);
    }
}
